package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 物模型事件
 * </p>
 *
 * @author AutoGenerator
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class IotProductEvent extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    private String name;

    private String productKey;

    private String moduleCode;

    private String dit;

    private String sourceCode;

    /**
     * 事件来源1平台2事件通道
     */
    private Integer sourceType;

    /**
     * 模拟量,状态量
     */
    private Integer dataType;

    private String emergency;

    /**
     * 标签
     */
    private String label;

    /**
     * 是否失效，1已失效
     */
    private Integer invalid;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModify;

    private String createdBy;

    private String modifiedBy;

    /**
     * 是否删除，1已删除
     */
    private Integer deleteFlag;


}
